﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using NurseStation;
using NurseStation.DataModels;
using SqlSugar;
using Prism.Mvvm;

namespace NurseStation.DataModels
{
    [SugarTable("DICT_COL")]
    public class ColShow : BindableBase
    {
        [SugarColumn(IsPrimaryKey = true)]
         
        public long Id { get; set; }


        /// <summary>
        /// 显示名字
        /// </summary>
        private string _Header;

        public string Header
        {
            get => _Header;
            set
            {
                _Header = value;
                RaisePropertyChanged(nameof(Header));
            }
        }

        /// <summary>
        /// 记录时间
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary>
        private Visibility _IsShow;

       
        [SugarColumn(IsIgnore =true)]
        public Visibility IsShow
        {
            get => _IsShow;
            set
            {
                _IsShow = value;
                RaisePropertyChanged(nameof(IsShow));
            }
        }

        /// <summary>
        /// 是否显示
        /// </summary>
        private string _IfShow;

        public string IfShow
        {
            get => _IfShow;
            set
            {
                _IfShow = value;
                RaisePropertyChanged(nameof(IfShow));
            }
        }
     
    }
}
